﻿<!DOCTYPE html>
<html>
<head th:fragment = "commonHead(title)">
    <meta charset="utf-8">
 
    <link rel="stylesheet" th:href="@{/css/sapar.css}" />
    <link rel="stylesheet" th:href="@{/css/index.css}" />
    <script th:src="@{/js/jq/jquery-1.8.0.min.js}" >
    
    <title>完美公司业绩查询系统</title>
    <script>
        $.ajaxSetup({
            //dataType: 'json',
            ////请求失败遇到异常触发
            //error: function (xhr, status, e) {
            //    debugger;
            //},
            ////请求成功后触发
            //success: function (data) {
            //    if (!!data) {
            //        var ex = $.parseJSON(data.responseText);
            //        if (!!ex && !!ex.Status) {
            //            alert(ex.Message);
            //            if (!!ex.BackUrl)
            //                window.location.href = ex.BackUrl;
            //        }
            //    }
            //},
            statusCode: {
                499: function (data) {
                    transferException(data);
                },
                498: function (data) {
                    transferException(data);
                },
                497: function (data) {
                    transferException(data);
                },
                496: function (data) {
                    transferException(data);
                },
                495: function (data) {
                    transferException(data);
                },
                494: function (data) {
                    transferException(data);
                },
                493: function (data) {
                    transferException(data);
                },
                492: function (data) {
                    transferException(data);
                },
                491: function (data) {
                    transferException(data);
                },
                500: function (data) {
                    debugger;
                    transferException(data);
                }
            }
        });
        function transferException(data) {
            var ex = $.parseJSON(data.responseText);
            alert(ex.Message);
            if (!!ex.BackUrl)
                window.location.href = ex.BackUrl;
        }
    </script>
</head>
<body>
    <div id="container">
        @Html.Partial("header")
        @RenderBody()
        @Html.Partial("footer")
    </div>
    @Html.Partial("exitDialog")
    <script type="text/javascript" src="/Content/common/js/sapar.js"></script>
    <script type="text/javascript" src="/Content/static/js/index.js"></script>
    <script type="text/javascript">
        $('select').iSelect();
    </script>
    <style type="text/css">
        /*弹窗关闭按钮旋转特效*/
        .ui-dialog-hd .ui-dialog-close i{    
        transition-duration:1s ;
        }
        .ui-dialog-hd .ui-dialog-close i:hover
        { 
        /* Rotate div */
        transform:rotate(360deg);
        -ms-transform:rotate(360deg); /* Internet Explorer */
        -moz-transform:rotate(360deg); /* Firefox */
        -webkit-transform:rotate(360deg); /* Safari 和 Chrome */
        -o-transform:rotate(360deg); /* Opera */
        }
    </style>
    @RenderSection("scripts", required: false)
</body>
</html>
